home *** CD-ROM | disk | FTP | other *** search
- Path: news.ios.com!usenet
- From: Keith Boruff <kboruff@village.ios.com>
- Newsgroups: comp.lang.c
- Subject: Quick Pointer Question
- Date: 14 Jan 1996 04:00:54 GMT
- Organization: Internet Online Services
- Message-ID: <4d9v5m$ig0@news.ios.com>
- NNTP-Posting-Host: ppp-5.ts-3.nyc.idt.net
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.1PE (Windows; I; 16bit)
-
- Consider these declaration statements:
-
- static char allocbuf[10000];
- static char *allocp;
- allocp = allocbuf; /* allocp points to allocbuf[0] */
-
- Now consider this:
-
- static char allocbuf[10000];
- static char *allocp = allocbuf;
-
-
- I am new to pointers and their syntax; I just want to know if these two
- different declaration expressions are saying the exactly the same thing.
- I would appreciate any help..
-
- Keith Boruff
-
-